﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A73 RID: 2675
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LobbyCreateScRsp : IMessage<LobbyCreateScRsp>, IMessage, IEquatable<LobbyCreateScRsp>, IDeepCloneable<LobbyCreateScRsp>, IBufferMessage
	{
		// Token: 0x170021C8 RID: 8648
		// (get) Token: 0x060077B4 RID: 30644 RVA: 0x0013FF1F File Offset: 0x0013E11F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LobbyCreateScRsp> Parser
		{
			get
			{
				return LobbyCreateScRsp._parser;
			}
		}

		// Token: 0x170021C9 RID: 8649
		// (get) Token: 0x060077B5 RID: 30645 RVA: 0x0013FF26 File Offset: 0x0013E126
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LobbyCreateScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170021CA RID: 8650
		// (get) Token: 0x060077B6 RID: 30646 RVA: 0x0013FF38 File Offset: 0x0013E138
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LobbyCreateScRsp.Descriptor;
			}
		}

		// Token: 0x060077B7 RID: 30647 RVA: 0x0013FF3F File Offset: 0x0013E13F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyCreateScRsp()
		{
		}

		// Token: 0x060077B8 RID: 30648 RVA: 0x0013FF54 File Offset: 0x0013E154
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyCreateScRsp(LobbyCreateScRsp other) : this()
		{
			this.fightGameMode_ = other.fightGameMode_;
			this.roomId_ = other.roomId_;
			this.retcode_ = other.retcode_;
			this.memberInfo_ = other.memberInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060077B9 RID: 30649 RVA: 0x0013FFAD File Offset: 0x0013E1AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyCreateScRsp Clone()
		{
			return new LobbyCreateScRsp(this);
		}

		// Token: 0x170021CB RID: 8651
		// (get) Token: 0x060077BA RID: 30650 RVA: 0x0013FFB5 File Offset: 0x0013E1B5
		// (set) Token: 0x060077BB RID: 30651 RVA: 0x0013FFBD File Offset: 0x0013E1BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightGameMode FightGameMode
		{
			get
			{
				return this.fightGameMode_;
			}
			set
			{
				this.fightGameMode_ = value;
			}
		}

		// Token: 0x170021CC RID: 8652
		// (get) Token: 0x060077BC RID: 30652 RVA: 0x0013FFC6 File Offset: 0x0013E1C6
		// (set) Token: 0x060077BD RID: 30653 RVA: 0x0013FFCE File Offset: 0x0013E1CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong RoomId
		{
			get
			{
				return this.roomId_;
			}
			set
			{
				this.roomId_ = value;
			}
		}

		// Token: 0x170021CD RID: 8653
		// (get) Token: 0x060077BE RID: 30654 RVA: 0x0013FFD7 File Offset: 0x0013E1D7
		// (set) Token: 0x060077BF RID: 30655 RVA: 0x0013FFDF File Offset: 0x0013E1DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170021CE RID: 8654
		// (get) Token: 0x060077C0 RID: 30656 RVA: 0x0013FFE8 File Offset: 0x0013E1E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MemberInfo> MemberInfo
		{
			get
			{
				return this.memberInfo_;
			}
		}

		// Token: 0x060077C1 RID: 30657 RVA: 0x0013FFF0 File Offset: 0x0013E1F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LobbyCreateScRsp);
		}

		// Token: 0x060077C2 RID: 30658 RVA: 0x00140000 File Offset: 0x0013E200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LobbyCreateScRsp other)
		{
			return other != null && (other == this || (this.FightGameMode == other.FightGameMode && this.RoomId == other.RoomId && this.Retcode == other.Retcode && this.memberInfo_.Equals(other.memberInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060077C3 RID: 30659 RVA: 0x00140070 File Offset: 0x0013E270
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.FightGameMode != FightGameMode.None)
			{
				num ^= this.FightGameMode.GetHashCode();
			}
			if (this.RoomId != 0UL)
			{
				num ^= this.RoomId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.memberInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060077C4 RID: 30660 RVA: 0x001400F5 File Offset: 0x0013E2F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060077C5 RID: 30661 RVA: 0x001400FD File Offset: 0x0013E2FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060077C6 RID: 30662 RVA: 0x00140108 File Offset: 0x0013E308
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RoomId != 0UL)
			{
				output.WriteRawTag(32);
				output.WriteUInt64(this.RoomId);
			}
			this.memberInfo_.WriteTo(ref output, LobbyCreateScRsp._repeated_memberInfo_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this.FightGameMode != FightGameMode.None)
			{
				output.WriteRawTag(96);
				output.WriteEnum((int)this.FightGameMode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060077C7 RID: 30663 RVA: 0x00140190 File Offset: 0x0013E390
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.FightGameMode != FightGameMode.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.FightGameMode);
			}
			if (this.RoomId != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.RoomId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.memberInfo_.CalculateSize(LobbyCreateScRsp._repeated_memberInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060077C8 RID: 30664 RVA: 0x00140214 File Offset: 0x0013E414
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LobbyCreateScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.FightGameMode != FightGameMode.None)
			{
				this.FightGameMode = other.FightGameMode;
			}
			if (other.RoomId != 0UL)
			{
				this.RoomId = other.RoomId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.memberInfo_.Add(other.memberInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060077C9 RID: 30665 RVA: 0x00140289 File Offset: 0x0013E489
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060077CA RID: 30666 RVA: 0x00140294 File Offset: 0x0013E494
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 66U)
				{
					if (num == 32U)
					{
						this.RoomId = input.ReadUInt64();
						continue;
					}
					if (num == 66U)
					{
						this.memberInfo_.AddEntriesFrom(ref input, LobbyCreateScRsp._repeated_memberInfo_codec);
						continue;
					}
				}
				else
				{
					if (num == 88U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.FightGameMode = (FightGameMode)input.ReadEnum();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002DD0 RID: 11728
		private static readonly MessageParser<LobbyCreateScRsp> _parser = new MessageParser<LobbyCreateScRsp>(() => new LobbyCreateScRsp());

		// Token: 0x04002DD1 RID: 11729
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002DD2 RID: 11730
		public const int FightGameModeFieldNumber = 12;

		// Token: 0x04002DD3 RID: 11731
		private FightGameMode fightGameMode_;

		// Token: 0x04002DD4 RID: 11732
		public const int RoomIdFieldNumber = 4;

		// Token: 0x04002DD5 RID: 11733
		private ulong roomId_;

		// Token: 0x04002DD6 RID: 11734
		public const int RetcodeFieldNumber = 11;

		// Token: 0x04002DD7 RID: 11735
		private uint retcode_;

		// Token: 0x04002DD8 RID: 11736
		public const int MemberInfoFieldNumber = 8;

		// Token: 0x04002DD9 RID: 11737
		private static readonly FieldCodec<MemberInfo> _repeated_memberInfo_codec = FieldCodec.ForMessage<MemberInfo>(66U, EggLink.DanhengServer.Proto.MemberInfo.Parser);

		// Token: 0x04002DDA RID: 11738
		private readonly RepeatedField<MemberInfo> memberInfo_ = new RepeatedField<MemberInfo>();
	}
}
